package tech.wangpai;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import tech.wangpai.service.UserService;

@SpringBootApplication
public class RunnerApplication {
    private static final Logger logger = LoggerFactory.getLogger(RunnerApplication.class);
    public static void main(String[] args) {
        ConfigurableApplicationContext ctx = SpringApplication.run(RunnerApplication.class, args);
        logger.info("程序启动成功");
        ctx.getBean(UserService.class).test();
    }
}
